<div class="fly-header layui-bg-black">
	<div class="layui-container">
		<a class="fly-logo" href="${basePath}/index">
           <img src="${baseStaticUrl}/images/logo.png" alt="layui">
        </a>
        <ul class="layui-nav fly-nav">
        	@if(title! == '首页'){
	            <li class="layui-nav-item layui-this">
	                <a href="${basePath}/index"><i class="iconfont icon-wendang"></i>首页</a>
	            </li>
             @}else{
            	 <li class="layui-nav-item">
	                <a href="${basePath}/index"><i class="iconfont icon-wendang"></i>首页</a>
	            </li>
             @}
            @if(title! == '社区'){
            	<li class="layui-nav-item layui-this">
                <a href="${basePath}/community"><i class="iconfont icon-wendang"></i>社区</a>
            	</li>
            @}else{
            <li class="layui-nav-item">
                <a href="${basePath}/community"><i class="iconfont icon-wendang"></i>社区</a>
            </li>
            @}
        </ul>
        @if(loginAccount! == null){
        	<ul class="layui-nav fly-nav-user">
	            <!-- 未登入的状态 -->
	            <li class="layui-nav-item">
	                <a href="${basePath}/login"><i class="iconfont icon-touxiang" style="margin-top:10px;"></i></a>
	            </li>
	            <li class="layui-nav-item">
	                <a href="${basePath}/login">登入</a>
	            </li>
	            <li class="layui-nav-item">
	                <a href="${basePath}/register">注册</a>
	            </li>
       	 	</ul>
        @}else{
        	<ul class="layui-nav fly-nav-user">
	            <li class="layui-nav-item">
	                <a class="fly-nav-avatar" href="${basePath}/my/my" id="LAY_header_avatar">
	                	<cite class="layui-hide-xs">${loginAccount.nickname!}</cite>
						<i class="layui-badge fly-badge-vip layui-hide-xs">${userSign.level_name!}</i>
	                	<img src="${loginAccount.avatar!}">
	                	<span class="layui-nav-more"></span>
	                </a>
	                <dl class="layui-nav-child layui-anim layui-anim-upbit">
	                	<dd>
	                		<a href="${basePath}/my/my"><i class="layui-icon"></i>用户中心</a>
	                	</dd>
	                	<dd>
	                		<a href="${basePath}/my/mySet"><i class="layui-icon"></i>基本设置</a>
	                    </dd>
	                    <hr>
	                    <dd>
	                    	<a href="${basePath}/my/message"><i class="iconfont icon-pinglun2" style="top: 4px;"></i>我的消息</a>
	                    </dd>
	                    <dd>
	                    	<a href="${basePath}/my/index"><i class="layui-icon" style="margin-left: 2px; font-size: 22px;"></i>我的主页</a>
	                    </dd>
	                    <hr style="margin: 5px 0;">
	                    <dd>
	                    	<a href="${basePath}/logout" style="text-align: center;">退出</a></dd>
	                </dl>
	            </li>
        	</ul>
        @}
	</div>
</div>
<input type="hidden" id="basePathId" value="${basePath}">
<input type="hidden" id="userId" value="${loginAccount.id!}">